package com.justech.mes.v2.dao.repository;

import com.justech.mes.v2.model.MesUserFixedAbnormalRecord;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * @author feifei.li
 */
@Repository
public interface MesUserOfflineFixedAbnormalRepository extends CrudRepository<MesUserFixedAbnormalRecord, Long> {

    /**
     * 查询用户的固定异常
     *
     * @param prodDate
     * @param batchId
     * @param userName
     * @return
     */
    MesUserFixedAbnormalRecord findByProdDateAndAndBatchIdAndAndUserName(String prodDate, Long batchId, String userName);
}
